filechoosernative: Make get_filter work for (non-portal) native chooser
authorMichael Weghorn <m.weghorn@posteo.de>
Sat, 23 May 2020 11:38:54 +0000 (13:38 +0200)
committerMichael Weghorn <m.weghorn@posteo.de>
Tue, 9 Jun 2020 20:59:34 +0000 (22:59 +0200)
commit57135acd2d56bdd17fcc295d04fb8ad7fc048b9c
tree232c700d4e2625f723bf68cd3ff1e6135518da49
parent8cb50ac6e9c6a78f337e4ad2bb61aa0558844904
filechoosernative: Make get_filter work for (non-portal) native chooser

'gtk_file_chooser_get_filter' did not work for GtkFileChooserNative,
since the previous way did not properly handle the delegate dialog,
s.a. commit a136cbae8f8848d49976512f7f0ec73137428ea0
("filechoosernative: forward current_filter to delegate dialog",
2018-11-29) for details, wich basiscally fixed the same thing for
the 'gtk_file_chooser_set_filter' case.

This fixes #1820 for the fallback dialog. A solution for the portal
one (which also requires changes to xdg-desktop-portal and
xdg-desktop-portal-gtk as well) will be suggested in a subsequent step.

Bug: #1820
gtk/gtkfilechoosernative.c